package com.xunqi.pay.service;

import com.lly835.bestpay.enums.BestPayTypeEnum;
import com.lly835.bestpay.model.PayResponse;
import com.xunqi.pay.pojo.PayInfo;

import java.math.BigDecimal;

/**
 * @Description:
 * @Created: with IntelliJ IDEA.
 * @author: 夏沫止水
 * @createTime: 2020-05-11 17:36
 **/
public interface PayService {

    /**
     * 创建订单
     * @param orderId
     * @param amount
     * @param bestPayTypeEnum
     * @return
     */
    PayResponse create(String orderId, BigDecimal amount, BestPayTypeEnum bestPayTypeEnum);

    /**
     * 异步通知处理
     * @param notifyData
     */
    String asyncNotify(String notifyData);


    /**
     *根据订单号查询订单状态
     * @param orderId
     * @return
     */
    PayInfo queryByOrderId(String orderId);

}
